#!/usr/bin/python
from pylab import *

# input list here
inlist = np.random.uniform(0.5, 1.0, 5)

pie(inlist, explode=inlist*0.03)
show()
# length = len(inlist)
# index = arange(length)
# # inlabel = inlist
# inlabel = index

# bar(index,inlist,facecolor='#9999ff', edgecolor='white')
# for x,y,ylabel in zip(index,inlist,inlabel):
#     # scatter(x+0.4,y+0.05)
#     text(x+0.4, y+0.05, ylabel, ha='center', va='bottom')
#     text(x+0.4, y+0.05, ylabel, ha='center', va='bottom',
#          bbox=dict(facecolor='red', alpha=0.5))                   # rectangular box around text


# show()
